#字典的遍历（效率较差），字典设计的初衷就是增删改查，底层是哈希表
a = {'id':1,'name':'zhangsan'}
for key in a:
    print(f'{key}:{a[key]}')
#python中能够保证字典的顺序与插入顺序一样

print(a.keys())
print(a.values())
print(a.items())

for key, value in a.items():
    print(key, value)
